<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSourceErrRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('source_err_records', function (Blueprint $table) {
            $table->increments('id');
            $table->string('source')->comment('资源渠道码');
            $table->string('err_msg')->comment('错误信息');
            $table->string('phone_num')->comment('手机号');
            $table->tinyInteger('err_type')->comment('错误类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('source_err_records');
    }
}
